\section{Tools.CacheHelper类参考}
\label{class_tools_1_1_cache_helper}\index{Tools::CacheHelper@{Tools::CacheHelper}}


\doxyref{CacheHelper}{p.}{class_tools_1_1_cache_helper} 数据缓存操作类  




Tools.CacheHelper合作图：
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=178pt]{class_tools_1_1_cache_helper__coll__graph}
\end{center}
\end{figure}
\subsection*{静态公有成员}
\begin{DoxyCompactItemize}
\item 
static void {\bf CacheInsertFromMinutes} (string key, object value, int minute)
\begin{DoxyCompactList}\small\item\em 以key键值，把value赋给Cache[key].固定过期时间。当缓存建立后过minute分钟就过期. \item\end{DoxyCompactList}\item 
static void {\bf CacheInsertAddMinutes} (string key, object value, int minute)
\begin{DoxyCompactList}\small\item\em 以key键值，把value赋给Cache[key].可调过期时间. 缓存被调用minute分钟后，再过期 \item\end{DoxyCompactList}\item 
static void {\bf CacheInsert} (string key, object value)
\begin{DoxyCompactList}\small\item\em 以key键值，把value赋给Cache[key].如果不主动清空，会一直保存在内存中. \item\end{DoxyCompactList}\item 
static void {\bf CacheNull} (string key)
\begin{DoxyCompactList}\small\item\em 清除Cache[key]的值 \item\end{DoxyCompactList}\item 
static object {\bf CacheValue} (string key)
\begin{DoxyCompactList}\small\item\em 根据key值，返回Cache[key]的值 \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{静态公有属性}
\begin{DoxyCompactItemize}
\item 
static Cache {\bfseries cache} = new Cache()\label{class_tools_1_1_cache_helper_a6580c46f61f9cc6672da8e125660036b}

\end{DoxyCompactItemize}


\subsection{详细描述}
\doxyref{CacheHelper}{p.}{class_tools_1_1_cache_helper} 数据缓存操作类 

\subsection{成员函数文档}
\index{Tools::CacheHelper@{Tools::CacheHelper}!CacheInsert@{CacheInsert}}
\index{CacheInsert@{CacheInsert}!Tools::CacheHelper@{Tools::CacheHelper}}
\subsubsection[{CacheInsert}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.CacheHelper.CacheInsert (
\begin{DoxyParamCaption}
\item[{string}]{ key, }
\item[{object}]{ value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_cache_helper_a6593333a47bffb2f769b2a0638fb0395}


以key键值，把value赋给Cache[key].如果不主动清空，会一直保存在内存中. 

param name=\char`\"{}key\char`\"{}$>$Cache键值

param name=\char`\"{}value\char`\"{}$>$给Cache[key]赋的值\index{Tools::CacheHelper@{Tools::CacheHelper}!CacheInsertAddMinutes@{CacheInsertAddMinutes}}
\index{CacheInsertAddMinutes@{CacheInsertAddMinutes}!Tools::CacheHelper@{Tools::CacheHelper}}
\subsubsection[{CacheInsertAddMinutes}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.CacheHelper.CacheInsertAddMinutes (
\begin{DoxyParamCaption}
\item[{string}]{ key, }
\item[{object}]{ value, }
\item[{int}]{ minute}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_cache_helper_a9394867547fb6596fd4a03736019f54f}


以key键值，把value赋给Cache[key].可调过期时间. 缓存被调用minute分钟后，再过期 

param name=\char`\"{}key\char`\"{}$>$Cache键值

param name=\char`\"{}value\char`\"{}$>$给Cache[key]赋的值

param name=\char`\"{}minute\char`\"{}$>$可调过期分钟\index{Tools::CacheHelper@{Tools::CacheHelper}!CacheInsertFromMinutes@{CacheInsertFromMinutes}}
\index{CacheInsertFromMinutes@{CacheInsertFromMinutes}!Tools::CacheHelper@{Tools::CacheHelper}}
\subsubsection[{CacheInsertFromMinutes}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.CacheHelper.CacheInsertFromMinutes (
\begin{DoxyParamCaption}
\item[{string}]{ key, }
\item[{object}]{ value, }
\item[{int}]{ minute}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_cache_helper_ad2e96f137ccce308366d3205e9f0c8e3}


以key键值，把value赋给Cache[key].固定过期时间。当缓存建立后过minute分钟就过期. 

param name=\char`\"{}key\char`\"{}$>$Cache键值

param name=\char`\"{}value\char`\"{}$>$给Cache[key]赋的值

param name=\char`\"{}minute\char`\"{}$>$固定过期分钟\index{Tools::CacheHelper@{Tools::CacheHelper}!CacheNull@{CacheNull}}
\index{CacheNull@{CacheNull}!Tools::CacheHelper@{Tools::CacheHelper}}
\subsubsection[{CacheNull}]{\setlength{\rightskip}{0pt plus 5cm}static void Tools.CacheHelper.CacheNull (
\begin{DoxyParamCaption}
\item[{string}]{ key}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_cache_helper_aabd23bfd39ba7fbd8dbc6f3c48abaf8b}


清除Cache[key]的值 

param name=\char`\"{}key\char`\"{}$>$\index{Tools::CacheHelper@{Tools::CacheHelper}!CacheValue@{CacheValue}}
\index{CacheValue@{CacheValue}!Tools::CacheHelper@{Tools::CacheHelper}}
\subsubsection[{CacheValue}]{\setlength{\rightskip}{0pt plus 5cm}static object Tools.CacheHelper.CacheValue (
\begin{DoxyParamCaption}
\item[{string}]{ key}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  [static]}}\label{class_tools_1_1_cache_helper_aded61ea7628ec49b56ab0036c9e469d8}


根据key值，返回Cache[key]的值 

param name=\char`\"{}key\char`\"{}$>$

该类的文档由以下文件生成：\begin{DoxyCompactItemize}
\item 
D:/Project/1101/Tools/CacheHelper.cs\end{DoxyCompactItemize}
